<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        canvas,
        img {
            border: 1px solid red;
        }

        body {
            height: 1000px;
        }

        #dv {
            position: relative;
            height: 500px;
        }
    </style>
</head>

<body>
    <div id="dv"></div>
    <!-- http://local.petslib.cn:5500/example.html -->
    <script type="module" src="/example.js"></script>
</body>

</html>